<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>当前的n：<span v-text="n"></span></h1>
    <h1>放大10倍后的n：<span v-big="n"></span></h1>
</div>
<script src="../../JavaScript/vue.js"></script>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            n: 1
        },
        directives:{
            big(el,binding){
                el.innerHTML=binding.value*10
            }
        }
    })
</script>
</body>
</html>
</body>
</html>
